home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / ms-0.07 / xms / MsP.h < prev    next >
C/C++ Source or Header  |  1995-06-26  |  2KB  |  64 lines

  1. /* MsP.h - private header for MandelSpawn popup widget */
  2. /* Copyright (C) 1990-1993 Andreas Gustafsson */
  3.  
  4. #ifndef _MsP_h
  5. #define _MsP_h
  6.  
  7. #include <X11/CompositeP.h>
  8.  
  9. #include "Ms.h"
  10. #include "Mama.h"
  11. #include "datarep.h"
  12. #include "mspawn.h"
  13.  
  14. /* data type for the rubberband box */
  15. struct box
  16. { int x0, x1, y0, y1;
  17. };
  18.  
  19. /* widget instance structure */
  20. typedef struct 
  21. { ms_state xi;            /* X-independent stuff */
  22.   GC box_gc;            /* GC for the rubberband box */
  23.   GC blit_gc;            /* GC for image drawing */
  24.   XPoint box_origin;
  25.   XPoint box_corner;
  26.   Bool box_exists;        /* the box is supposed to be visible */
  27.   XImage *rectbuffer;        /* chunk buffer (previously scanline buffer) */
  28.   unsigned int rectbuffer_size; /* size of chunk buffer in bytes */
  29.   MamaWidget mama;              /* our creator */
  30.   Bool center_box;        /* make box symmetric around origin */
  31.   Cursor my_cursor;        /* cursor to use within Ms window */
  32.   int type;            /* frame buffer type (for fast drawing) */
  33. #ifdef MENU
  34.   Widget menu;            /* the popup menu */
  35. #endif
  36. #ifdef LABEL
  37.   Widget underflow_label;    /* the underflow label widget */
  38.   int underflow;        /* true if underflow label has been created */
  39. #endif
  40.   Bool sony_bug_workaround;    /* Sony bug compatibility mode */
  41.   int crosshair_size;           /* length of each arm of the crosshair */
  42. } MsPart;
  43.  
  44. typedef struct _MsRec 
  45. { CorePart    core;
  46.   CompositePart composite;
  47.   MsPart    ms;
  48. } MsRec;
  49.  
  50. /* Widget class structure */
  51. typedef struct 
  52. { int dummy;
  53. } MsClassPart;
  54.  
  55. typedef struct _MsClassRec 
  56. { CoreClassPart core_class;
  57.   CompositeClassPart composite_class;
  58.   MsClassPart ms;
  59. } MsClassRec;
  60.  
  61. extern MsClassRec msClassRec;
  62.  
  63. #endif /* _MsP_h */
  64.